package iCal;

import java.io.*;
import java.util.Scanner;

public class TestCases {
	
	public boolean isTimeValid() {
		
		   // TestEvent is tested
		   TestEvent tester = new TestEvent();

		   // Tests
		   Scanner s = null;
		   try {
			   		assertSame("DTSTART:20140813", 0, tester.whenStart);
			   		assertSame("DTEND:20140813", 0, tester.whenStop);
	           
			   		assertTrue(tester.whenStart.equals("DTSTART:20140813"));
		   }
		   
		   finally {
			   
		   }
		   
		 }
	
	public boolean isDayValid() {

	   // TestEvent is tested
	   TestEvent tester = new TestEvent();

	   // Tests
	   Scanner s = null;
	   try {
		   
	   }
	   
	   finally {
           if (s != null) {
               s.close();
           }
       }
	   
	 } 

	public boolean isMonthValid() {
		   // TestEvent is tested
		   TestEvent tester = new TestEvent();

		   // Tests
		   Scanner s = null;
		   try {
//	           s = new Scanner(new BufferedReader(new FileReader("xanadu.txt"))); NEED TO SCAN FILE

	           s.findInLine("DTSTART: ");
	           if(!s.hasNext()) {
	        	   return false;
	           }
	           
	           else {

	           }
		   }
		   
		   finally {
	           if (s != null) {
	               s.close();
	           }
	       }
		   
		 }
	
}
